package com.example.storedemo

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.widget.Toast
import com.example.storedemo.util.MyDatabaseHelper
import kotlinx.android.synthetic.main.activity_main.*

class MainActivity : AppCompatActivity() {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)
        button5.setOnClickListener(){
            var dbHelper=MyDatabaseHelper(this,"bookstore.db",1)
            dbHelper.writableDatabase
            Toast.makeText(this,"ok",Toast.LENGTH_LONG).show()
        }
    }
}
